package com.simon.hse.activity.safe.safeedu;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.simon.hse.R;
import com.simon.hse.activity.BaseActivity;

import org.xutils.view.annotation.ContentView;
import org.xutils.view.annotation.Event;
import org.xutils.view.annotation.ViewInject;

/**
 * 特种作业培训记录
 */
@SuppressWarnings("all")
@ContentView(R.layout.activity_safe_education)
public class SafeEducationActivity extends BaseActivity {
    @ViewInject(R.id.tv_common_title)
    TextView mTv_common_title;

    @ViewInject(R.id.iv_common_right)
    ImageView mIv_common_right;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        mTv_common_title.setText("特种作业培训记录");
        mIv_common_right.setImageResource(R.mipmap.tab_add_icon);

    }

    @Event(value = {R.id.iv_common_left, R.id.iv_common_right, R.id.ll_safe_edu_query, R.id.ll_safe_edu_approval})
    private void clickButton(View view) {
        Intent intent = new Intent();
        switch (view.getId()) {
            case R.id.iv_common_left:
                finish();
                break;
            case R.id.iv_common_right:
                intent.setClass(SafeEducationActivity.this, ApplySafeEducationActivity.class);
                startActivity(intent);
                break;
            case R.id.ll_safe_edu_query:
                intent.setClass(SafeEducationActivity.this, SafeEducationQueryActivity.class);
                startActivity(intent);
                break;
            case R.id.ll_safe_edu_approval:
                intent.setClass(SafeEducationActivity.this, SafeEducationApprovalActivity.class);
                startActivity(intent);
                break;
        }
    }
}
